/**
 * 
 */
package com.alstudio.module;

import com.alstudio.utils.log.ALLog;

/**
 * 实现ALModuleManager模块管理器状态监听接口ModuleManagerWorkingStateObserver。监听模块管理器工作状态
 * 
 * @author alonso lee
 * 
 */
public class ModuleManagerWorkingStateObserverImpl implements
		ModuleManagerWorkingStateObserver {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.ModuleManagerWorkingStateObserver#onModuleRegister
	 * (com.alstudio.module.BaseModule)
	 */
	@Override
	public void onModuleRegister(BaseModule module) {
		// TODO Auto-generated method stub
		ALLog.i("模块" + module.getClass().getSimpleName() + " 注册到模块管理器");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.ModuleManagerWorkingStateObserver#onModuleUnregister
	 * (com.alstudio.module.BaseModule)
	 */
	@Override
	public void onModuleUnregister(BaseModule module) {
		// TODO Auto-generated method stub
		ALLog.i("模块" + module.getClass().getSimpleName() + " 从模块管理器中移除");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.ModuleManagerWorkingStateObserver#onModuleReceveEvent
	 * (com.alstudio.module.BaseModule, com.alstudio.module.ModuleEvent)
	 */
	@Override
	public void onModuleReceveEvent(BaseModule module, ModuleEvent event) {
		// TODO Auto-generated method stub
		ALLog.i("模块" + module.getClass().getSimpleName() + " 接收到事件 "
				+ event.getClass().getSimpleName());

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.ModuleManagerWorkingStateObserver#onModuleManagerStart
	 * ()
	 */
	@Override
	public void onModuleManagerStart() {
		// TODO Auto-generated method stub
		ALLog.i("模块管理器开始运行");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.alstudio.module.ModuleManagerWorkingStateObserver#onModuleManagerStop
	 * ()
	 */
	@Override
	public void onModuleManagerStop() {
		// TODO Auto-generated method stub
		ALLog.i("模块管理器停止运行");
	}

}
